<script setup lang="ts">
import { reactive } from 'vue'
import { TresCanvas } from '@tresjs/core'
import { CameraControls, Box } from '@tresjs/cientos'

const controlsState = reactive({
	minDistance: 0,
	maxDistance: 100,
})
</script>

<template>
	<TresCanvas clear-color="#202020">
		<TresPerspectiveCamera :position="[5, 5, 5]" />
		<CameraControls v-bind="controlsState" make-default />
		<TresGridHelper :position="[0, -1, 0]" />
		<Box :scale="2">
			<TresMeshToonMaterial color="orange" />
		</Box>
		<TresAmbientLight />
		<TresDirectionalLight :position="[0, 2, 4]" />
	</TresCanvas>
</template>